<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\common\model;

use think\Model;

class Content extends BaseModel
{
    public function getTableFieldsComment(){
        return [
            [
                $this->commentFieldName => '{"disc":"序号","name":"id","type":"hidden","type_value_custom":null,"sort":1,"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"分类","op":"="}}'
            ],
            [
                $this->commentFieldName => '{"disc":"发布者","name":"aid","type":"select","sort":"100","type_value_custom":{"table":"Admin","id":"id","text":"admin_realname","f":"","source":""},"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":false,"cv":""},"edit":{"checked":false,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"="}}'
            ],
            [
                $this->commentFieldName => '{"disc":"标题","name":"title","type":"text","type_value_custom":null,"sort":6,"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":true},"isSearch":true,"search":{"text":"标题","op":"LIKE"}}'
            ],
            [
                $this->commentFieldName => '{"disc":"分类","name":"category_id","explain":"","type":"select_source","sort":"5","type_value_custom":{"table":"Category","id":"id","text":"cat_name","f":"","source":"catList","is_tree":true,"tree_parent_id_name":"parent_id"},"type_value":[],"show":{"list":{"checked":true,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":true,"search":{"text":"分类","op":"=","is_tree":true,"tree_parent_id_name":"parent_id"}}'
            ],
            [
                $this->commentFieldName => '{"disc":"描述","name":"description","type":"textarea","sort":"9","type_value_custom":{"table":"Admin","id":"id","text":"admin_realname","f":"","source":""},"sort":7,"type_value":[],"show":{"list":{"checked":false,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"="}}'
            ],
            [
                $this->commentFieldName => '{"disc":"封面","name":"cover_url","type":"image_select","sort":"7","type_value_custom":{"table":"Admin","id":"id","text":"admin_realname","f":"","source":""},"type_value":[],"show":{"list":{"checked":false,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"="}}'
            ],
            [
                $this->commentFieldName => '{"disc":"跳转URL","name":"jump_url","explain":"填写本项优先使用跳转功能","type":"text","sort":"100","type_value_custom":{"table":"Admin","id":"id","text":"admin_realname","f":"","source":""},"type_value":[],"show":{"list":{"checked":false,"cv":""},"add":{"checked":true,"cv":""},"edit":{"checked":true,"cv":""},"view":{"checked":true,"cv":""}},"validate":{"require":false},"isSearch":false,"search":{"text":"","op":"="}}'
            ],
        ];
    }

    public function getTableComment(){
        return '';
    }
}